package com.yuanfeng.base.feign;


import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;


@FeignClient(name = "mall-userms", url = "http://localhost:8081")
public interface UsermsClient {

    /**
     * 查询用户积分信息
     */
    @PostMapping(value = "/user/ms/getuserMemberInformation")
    ResponseResult getUserMemberInformation(@RequestBody Map<String, String> paraMap);


    /**
     * 查询会员权益
     *
     * @param id
     * @return
     */
    @PostMapping("/user/plusEquity/query")
    ResponseResult selectplusequitys(@RequestBody List<Integer> id);


    /**
     * 更新用户信息UserInfo单表
     */
    @PostMapping(value = "/user/ms/updateUser")
    ResponseResult updateUser(@RequestBody Map<String, Object> paraMap);

    /**
     * 根据shopId 查询店铺信息
     */
    @GetMapping(value = "/user/ms/queryShopUserInfo")
    ResponseResult queryShopUserInfo(@RequestParam("shopId") Integer shopId);
}
